package com.zhl.study.service.chainResponsibility.strategy;

import com.zhl.study.anno.Duty;
import com.zhl.study.cons.ProduckTypeConst;
import com.zhl.study.service.chainResponsibility.IHandler;
import com.zhl.study.vo.Product;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className AHandler
 * @Date: 2024/12/26 21:19
 */
//@Order(1)
@Component
@Duty(type= {ProduckTypeConst.PRODUCT_GENERAL,ProduckTypeConst.PRODUCT_ACTIVITY},order = 20)
public class AHandler extends IHandler<Product, Boolean> {
    @Override
    public Boolean handler(Product product) {
        System.out.println("AHandler");
        return super.handler(product);
    }
}
